from django.urls import path, re_path
from . import views

urlpatterns = [
    path(r"category/", views.CourseCategoryListAPIView.as_view()),
    path(r"", views.CourseListAPIView.as_view()),
    # http://api.luffycity.cn:8000/course/1
    re_path("(?P<pk>\d+)/", views.CourseRetrieveAPIView.as_view()),
    path(r"chapter/", views.CourseChapterListAPIView.as_view()),
    path(r"player/", views.PolyvAPIView.as_view()),

]
